import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 自适应
import "lib-flexible";
// 初始化css
import "@/assets/css/reset.css";

import 'swiper/dist/css/swiper.min.css'
import 'swiper/dist/js/swiper.min.js'

import { Empty, Cascader, Uploader, Icon, Picker, Area, Popup, DatetimePicker, RadioGroup, Radio, Button, NoticeBar, Swipe, SwipeItem, Tab, Tabs, Search, Form, Field } from 'vant';

router.afterEach((to, from, next) => {
    window.scrollTo(0, 0);
})
createApp(App).use(store).use(router).use(Cascader).use(Empty).use(Uploader).use(Icon).use(Picker).use(Area).use(Popup).use(DatetimePicker).use(RadioGroup).use(Radio).use(Button).use(Form).use(Field).use(NoticeBar).use(Search).use(Swipe).use(SwipeItem).use(Tab).use(Tabs).mount("#app");
